﻿#ifndef UIMODELSIGBASEEDIT_H
#define UIMODELSIGBASEEDIT_H

#include <QWidget>
#include <QSharedPointer>

#include <devicemodel/CRtModelSigBase.h>

class UiModelSigBaseEdit : public QWidget
{
    Q_OBJECT
public:
    enum EOptmode {
        ECreate = 0x00,
        EEdit
    };

    explicit UiModelSigBaseEdit(QSharedPointer<CRtModelSigBase> sig, QStringList groups, EOptmode mode, QWidget *parent = nullptr);

    void save();
signals:


private:
    QSharedPointer<CRtModelSigBase> m_editptr;

    class ElaLineEdit* m_let_name = nullptr;
    class ElaLineEdit* m_let_descr = nullptr;
    class ElaComboBox* m_cbx_group = nullptr;
};

#endif // UIMODELSIGBASEEDIT_H
